package main

import (
	"fmt"
	"server/base"

	"github.com/360EntSecGroup-Skylar/excelize/v2"
)

type Renamer struct {
}

func (this *Renamer) ReadExcel(filename string) {
	f, err := excelize.OpenFile(filename)
	base.Raise(err)

	sheets := f.GetSheetList()
	for _, shname := range sheets {
		rows, err := f.GetRows(shname)
		base.Raise(err)
		for _, row := range rows[1:] {
			fmt.Println("row:", row)
			if len(row) < 25 {
				continue
			}
			//A := row[0]
			//B := row[1]
			//C := row[2]
			//D := row[3]
			//E := row[4]
			//F := row[5]
			////G := row[6]
			//H := row[7]
			//I := row[8]
			//J := row[9]
			//K := row[10]
			//L := row[11]
			//M := row[12]
			//N := row[13]
			//O := row[14]
			//P := row[15]
			//Q := row[16]
			//R := row[17]
			////S := row[18]
			//T := row[19]
			//U := row[20]
			////V := row[21]
			////W := row[22]
			////X := row[23]
			//Y := row[24]
			//
			//old := Y + "\\" + M
			//newname := A+
		}
	}
}
